#!/bin/sh

# Build zipfiles for ATK on Win32

ZIP=/tmp/atk-@ATK_VERSION@.zip
DEVZIP=/tmp/atk-dev-@ATK_VERSION@.zip

cd @prefix@
rm $ZIP

DLLDIR=lib
[ -f bin/libatk-@ATK_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll ] && DLLDIR=bin

zip $ZIP -@ <<EOF
$DLLDIR/libatk-@ATK_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
EOF

zip $ZIP share/locale/*/LC_MESSAGES/atk10.mo

rm $DEVZIP
zip -r $DEVZIP -@ <<EOF
include/atk-1.0
lib/libatk-@ATK_API_VERSION@.dll.a
lib/atk-@ATK_API_VERSION@.lib
lib/atk-@ATK_API_VERSION@.def
lib/pkgconfig/atk.pc
EOF
